package com.botarena.server.dao.filter;

import com.botarena.server.model.Bot;

public class BotFilter implements Filter<Bot> {

	private String name;

	public BotFilter(String name) {
		this.name = name;
	}
	
	@Override
	public boolean accept(Bot e) {
		
		if (name != null && name.equals(e.getName()))
			return true;
		
		return false;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
